import request from "@/utils/request";

// 获取客户信息列表
export function getClientApi(query) {
  return request({
    url: "/signIn/client/list",
    method: "get",
    params: query,
  });
}

// 新增客户信息
export function addClientApi(data) {
  return request({
    url: "/signIn/client",
    method: "post",
    data: data,
  });
}

// 根据id查询客户详情
export function getClientByIdApi(postId) {
  return request({
    url: "/signIn/client/" + postId,
    method: "get",
  });
}

// 删除客户信息
export function deleteClientApi(postId) {
  return request({
    url: "/signIn/client/" + postId,
    method: "delete",
  });
}

// 修改客户信息
export function putClientApi(data) {
  return request({
    url: "/signIn/client",
    method: "put",
    data: data,
  });
}
